package com.yaoxun.console.xo.req;

import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;

import javax.validation.constraints.NotEmpty;

import com.yaoxun.console.xo.dto.FilterDefinition;
import com.yaoxun.console.xo.dto.Predicate;

import lombok.Data;
import lombok.experimental.Accessors;

@Data
@Accessors(chain = true)
public class RouterEditReq {

	@NotEmpty(message = "命名空间必填")
	private String namespace;
	
	@NotEmpty(message = "id必填")
	private String id;
	
	private int order;
	
	@NotEmpty(message = "uri必填")
	private String uri;

	@NotEmpty(message = "predicates必填")
	private List<Predicate> predicates = new ArrayList<>();
	
	private List<FilterDefinition> filters = new ArrayList<>();
	
	private Map<String, Object> metadata = new HashMap<>(); 
	
	
}
